const express = require("express");
const router = express.Router();
let { addDB, findDB } = require("../models/db.js")



router.get("/addUser", async(req, res) => {
    let addResult = await addDB("demo", req.query);
    res.json(addResult)
})

router.get("/findUser", async(req, res) => {
    let findResult = await findDB("demo");
    res.json(findResult)
})

module.exports = router;